import React from 'react'
import { QuestionTextareaDefaultProps, QuestionTextareaPropsType } from './interface'
import { Input, Typography } from 'antd'
const { Paragraph } = Typography

const { TextArea } = Input

const QuestionTextarea = (props: QuestionTextareaPropsType) => {
  const { title, placeholder } = { ...QuestionTextareaDefaultProps, ...props }
  return (
    <div>
      <Paragraph strong>{title}</Paragraph>
      <div>
        <TextArea placeholder={placeholder}></TextArea>
      </div>
    </div>
  )
}

export default QuestionTextarea
